3.20 \(\int \frac{\sqrt [3]{a} \sqrt [3]{b} B+b^{2/3} B x}{a+b x^3} \, dx\)

Optimal. Leaf size=39 \[ -\frac{2 B \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a}} \]

[Out]

(-2*B*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(Sqrt[3]*a^(1/3))

________________________________________________________________________________________

Rubi [A]  time = 0.0266326, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {1586, 617, 204} \[ -\frac{2 B \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a}} \]

Antiderivative was successfully verified.

[In]

Int[(a^(1/3)*b^(1/3)*B + b^(2/3)*B*x)/(a + b*x^3),x]

[Out]

(-2*B*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/(Sqrt[3]*a^(1/3))

Rule 1586

Int[(u_.)*(Px_)^(p_.)*(Qx_)^(q_.), x_Symbol] :> Int[u*PolynomialQuotient[Px, Qx, x]^p*Qx^(p + q), x] /; FreeQ[
q, x] && PolyQ[Px, x] && PolyQ[Qx, x] && EqQ[PolynomialRemainder[Px, Qx, x], 0] && IntegerQ[p] && LtQ[p*q, 0]

Rule 617

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[(a*c)/b^2]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + (2*c*x)/b], x] /; RationalQ[q] && (EqQ[q^2, 1] ||  !RationalQ[b^2 - 4*a*c])] /;
 FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 204

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> -Simp[ArcTan[(Rt[-b, 2]*x)/Rt[-a, 2]]/(Rt[-a, 2]*Rt[-b, 2]), x] /
; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\sqrt [3]{a} \sqrt [3]{b} B+b^{2/3} B x}{a+b x^3} \, dx &=\int \frac{1}{\frac{a^{2/3}}{\sqrt [3]{b} B}-\frac{\sqrt [3]{a} x}{B}+\frac{\sqrt [3]{b} x^2}{B}} \, dx\\ &=\frac{(2 B) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{\sqrt [3]{a}}\\ &=-\frac{2 B \tan ^{-1}\left (\frac{\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt{3} \sqrt [3]{a}}\right )}{\sqrt{3} \sqrt [3]{a}}\\ \end{align*}

Mathematica [A]  time = 0.0165907, size = 35, normalized size = 0.9 \[ -\frac{2 B \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt{3}}\right )}{\sqrt{3} \sqrt [3]{a}} \]

Antiderivative was successfully verified.

[In]

Integrate[(a^(1/3)*b^(1/3)*B + b^(2/3)*B*x)/(a + b*x^3),x]

[Out]

(-2*B*ArcTan[(1 - (2*b^(1/3)*x)/a^(1/3))/Sqrt[3]])/(Sqrt[3]*a^(1/3))

________________________________________________________________________________________

Maple [B]  time = 0.043, size = 195, normalized size = 5. \begin{align*}{\frac{B}{3}\sqrt [3]{a}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ){b}^{-{\frac{2}{3}}} \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{B}{6}\sqrt [3]{a}\ln \left ({x}^{2}-\sqrt [3]{{\frac{a}{b}}}x+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ){b}^{-{\frac{2}{3}}} \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}+{\frac{B\sqrt{3}}{3}\sqrt [3]{a}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ){b}^{-{\frac{2}{3}}} \left ({\frac{a}{b}} \right ) ^{-{\frac{2}{3}}}}-{\frac{B}{3}\ln \left ( x+\sqrt [3]{{\frac{a}{b}}} \right ){\frac{1}{\sqrt [3]{b}}}{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{B}{6}\ln \left ({x}^{2}-\sqrt [3]{{\frac{a}{b}}}x+ \left ({\frac{a}{b}} \right ) ^{{\frac{2}{3}}} \right ){\frac{1}{\sqrt [3]{b}}}{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}+{\frac{B\sqrt{3}}{3}\arctan \left ({\frac{\sqrt{3}}{3} \left ( 2\,{x{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}}-1 \right ) } \right ){\frac{1}{\sqrt [3]{b}}}{\frac{1}{\sqrt [3]{{\frac{a}{b}}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a^(1/3)*b^(1/3)*B+b^(2/3)*B*x)/(b*x^3+a),x)

[Out]

1/3*B/b^(2/3)*a^(1/3)/(1/b*a)^(2/3)*ln(x+(1/b*a)^(1/3))-1/6*B/b^(2/3)*a^(1/3)/(1/b*a)^(2/3)*ln(x^2-(1/b*a)^(1/
3)*x+(1/b*a)^(2/3))+1/3*B/b^(2/3)*a^(1/3)/(1/b*a)^(2/3)*3^(1/2)*arctan(1/3*3^(1/2)*(2/(1/b*a)^(1/3)*x-1))-1/3*
B/b^(1/3)/(1/b*a)^(1/3)*ln(x+(1/b*a)^(1/3))+1/6*B/b^(1/3)/(1/b*a)^(1/3)*ln(x^2-(1/b*a)^(1/3)*x+(1/b*a)^(2/3))+
1/3*B/b^(1/3)*3^(1/2)/(1/b*a)^(1/3)*arctan(1/3*3^(1/2)*(2/(1/b*a)^(1/3)*x-1))

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^(1/3)*b^(1/3)*B+b^(2/3)*B*x)/(b*x^3+a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.09054, size = 323, normalized size = 8.28 \begin{align*} \left [\sqrt{\frac{1}{3}} B \sqrt{-\frac{1}{a^{\frac{2}{3}}}} \log \left (\frac{2 \, b x^{3} - 3 \, a^{\frac{2}{3}} b^{\frac{1}{3}} x + 3 \, \sqrt{\frac{1}{3}}{\left (2 \, a^{\frac{2}{3}} b^{\frac{2}{3}} x^{2} + a b^{\frac{1}{3}} x - a^{\frac{4}{3}}\right )} \sqrt{-\frac{1}{a^{\frac{2}{3}}}} - a}{b x^{3} + a}\right ), \frac{2 \, \sqrt{\frac{1}{3}} B \arctan \left (\frac{\sqrt{\frac{1}{3}}{\left (2 \, b^{\frac{1}{3}} x - a^{\frac{1}{3}}\right )}}{a^{\frac{1}{3}}}\right )}{a^{\frac{1}{3}}}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^(1/3)*b^(1/3)*B+b^(2/3)*B*x)/(b*x^3+a),x, algorithm="fricas")

[Out]

[sqrt(1/3)*B*sqrt(-1/a^(2/3))*log((2*b*x^3 - 3*a^(2/3)*b^(1/3)*x + 3*sqrt(1/3)*(2*a^(2/3)*b^(2/3)*x^2 + a*b^(1
/3)*x - a^(4/3))*sqrt(-1/a^(2/3)) - a)/(b*x^3 + a)), 2*sqrt(1/3)*B*arctan(sqrt(1/3)*(2*b^(1/3)*x - a^(1/3))/a^
(1/3))/a^(1/3)]

________________________________________________________________________________________

Sympy [C]  time = 0.430803, size = 88, normalized size = 2.26 \begin{align*} \frac{B \left (- \frac{\sqrt{3} i \log{\left (x + \frac{- B \sqrt [3]{a} - \sqrt{3} i B \sqrt [3]{a}}{2 B \sqrt [3]{b}} \right )}}{3} + \frac{\sqrt{3} i \log{\left (x + \frac{- B \sqrt [3]{a} + \sqrt{3} i B \sqrt [3]{a}}{2 B \sqrt [3]{b}} \right )}}{3}\right )}{\sqrt [3]{a}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a**(1/3)*b**(1/3)*B+b**(2/3)*B*x)/(b*x**3+a),x)

[Out]

B*(-sqrt(3)*I*log(x + (-B*a**(1/3) - sqrt(3)*I*B*a**(1/3))/(2*B*b**(1/3)))/3 + sqrt(3)*I*log(x + (-B*a**(1/3)
+ sqrt(3)*I*B*a**(1/3))/(2*B*b**(1/3)))/3)/a**(1/3)

________________________________________________________________________________________

Giac [A]  time = 1.11651, size = 65, normalized size = 1.67 \begin{align*} \frac{2 \, \sqrt{3} B b^{\frac{1}{3}} \arctan \left (\frac{\sqrt{3}{\left (2 \, b^{\frac{2}{3}} x - a^{\frac{1}{3}} b^{\frac{1}{3}}\right )}}{3 \, \sqrt{a^{\frac{2}{3}} b^{\frac{2}{3}}}}\right )}{3 \, \sqrt{a^{\frac{2}{3}} b^{\frac{2}{3}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a^(1/3)*b^(1/3)*B+b^(2/3)*B*x)/(b*x^3+a),x, algorithm="giac")

[Out]

2/3*sqrt(3)*B*b^(1/3)*arctan(1/3*sqrt(3)*(2*b^(2/3)*x - a^(1/3)*b^(1/3))/sqrt(a^(2/3)*b^(2/3)))/sqrt(a^(2/3)*b
^(2/3))